﻿@using Models
@model List<News>

@{
    ViewBag.Title = "Category " + Request.RequestContext.RouteData.Values["id"];
}

<h2>Category @Request.RequestContext.RouteData.Values["id"]</h2>

@if (Model != null)
{
    for (int i = ViewBag.pager.StartIndex - 1; i <= ViewBag.pager.EndIndex - 1; i++)
    {


        ViewBag.i = i;
        @Html.Partial("_oneNews")



    }
}else
{
    @ViewBag.Message
}